#include "glut_win.h"

void DisplayFunc()
{
    glClear(GL_COLOR_BUFFER_BIT);

    glClearColor(0.2f, 0.3f, 0.4f, 1.f);

    glFinish();
}

int main(int argc, char **argv)
{
    CGlutWindow window("glut window");

    window.Init(&argc, argv);

    window.RegisterCallbackFunc([]() {
        glutDisplayFunc(DisplayFunc);
        glutIdleFunc(DisplayFunc);
    });

    window.MainLoop();

    return 0;
}